﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Share/MainMenu2.Master" AutoEventWireup="true"
    CodeBehind="ListJournal.aspx.cs" Inherits="MixScriptWeb.Accounting.ListJournal" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="padding-left: 10px">
        <h2 class="jquery_tab">
            <asp:Label ID="lblTitle" runat="server" Text="" /></h2>
        <br />
        <br />
        <table class="table-ui">
            <tr>
                <td>
                    <asp:DropDownList ID="ddlMonth" runat="server">
                        <asp:ListItem Value="1" Text="January" />
                        <asp:ListItem Value="2" Text="February" />
                        <asp:ListItem Value="3" Text="March" />
                        <asp:ListItem Value="4" Text="April" />
                        <asp:ListItem Value="5" Text="May" />
                        <asp:ListItem Value="6" Text="June" />
                        <asp:ListItem Value="7" Text="July" />
                        <asp:ListItem Value="8" Text="August" />
                        <asp:ListItem Value="9" Text="September" />
                        <asp:ListItem Value="10" Text="October" />
                        <asp:ListItem Value="11" Text="November" />
                        <asp:ListItem Value="12" Text="December" />
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:DropDownList ID="ddlTahun" runat="server">
                        <asp:ListItem Value="2011" Text="2011" />
                        <asp:ListItem Value="2012" Text="2012" />
                        <asp:ListItem Value="2013" Text="2013" />
                        <asp:ListItem Value="2014" Text="2014" />
                        <asp:ListItem Value="2015" Text="2015" />
                        <asp:ListItem Value="2016" Text="2016" />
                        <asp:ListItem Value="2017" Text="2017" />
                        <asp:ListItem Value="2018" Text="2018" />
                        <asp:ListItem Value="2019" Text="2019" />
                        <asp:ListItem Value="2020" Text="2020" />
                        <asp:ListItem Value="2021" Text="2021" />
                        <asp:ListItem Value="2022" Text="2022" />
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:Button ID="btnRefresh" runat="server" Text="refresh" OnClick="btnRefresh_click"
                        CssClass="button" />
                </td>
                <td>
                    <asp:Button ID="btnAdd" runat="server" Text="New" CssClass="button" />
                </td>
            </tr>
        </table>
        <br />
        <br />
        <asp:GridView ID="gvList" runat="server" Width="100%" Height="100%" AutoGenerateColumns="False"
            CssClass="gridview" DataKeyNames="slipid" OnRowCreated="gvList_OnRowCreated"
            OnSorting="gvList_Sorting" OnRowDataBound="gvList_DataBound" AllowSorting="true"
            AllowPaging="True" OnPageIndexChanging="gvList_PageIndexChanging" OnRowCommand="gvList_RowCommand">
            <AlternatingRowStyle CssClass="alt" />
            <Columns>
                <asp:TemplateField HeaderStyle-Width="30px" ItemStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        <asp:LinkButton runat="server" Text="Edit" ID="lbEdit" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderStyle-Width="40px" ItemStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        <asp:LinkButton CommandName="Deleting" Text="Delete" ID="lbDelete" runat="server"
                            CommandArgument='<%# Bind("slipid") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField HeaderText="Tanggal" DataField="slipdate" SortExpression="slipdate"
                    DataFormatString="{0:MMM-dd-yyy}" />
                <asp:BoundField HeaderText="Kode" DataField="slipcode" SortExpression="slipcode" />
                <asp:BoundField HeaderText="Nomer" DataField="slipnum" SortExpression="slipnum" />
                <asp:BoundField HeaderText="Currency" DataField="slipcurr" SortExpression="slipcurr" />
                <asp:BoundField HeaderText="Deskripsi" DataField="slipdesc" SortExpression="slipdesc" />
                <asp:BoundField HeaderText="Debit" DataField="Debet" DataFormatString="{0:##,##.00}" />
                <asp:BoundField HeaderText="Kredit" DataField="Kredit" DataFormatString="{0:##,##.00}" />
                <asp:BoundField HeaderText="posting" DataField="posting" ItemStyle-CssClass="hiden"
                    HeaderStyle-CssClass="hiden" />
                <asp:TemplateField HeaderStyle-Width="40px" ItemStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        <a target="_blank" href="../Accounting/detailViewGRN.aspx?slipid=<%# Eval("slipid") %>">
                            Detail</a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField HeaderText="matref" DataField="matref" ItemStyle-CssClass="hiden"
                    HeaderStyle-CssClass="hiden" />
            </Columns>
            <EditRowStyle BorderColor="Silver" BorderStyle="Solid" />
            <FooterStyle CssClass="ft" />
            <PagerStyle BorderStyle="None" BorderWidth="0px" HorizontalAlign="Center" />
        </asp:GridView>
    </div>
</asp:Content>
